﻿//using Elsa.EntityFrameworkCore.Extensions;
//using Elsa.EntityFrameworkCore.Modules.Management;
//using Elsa.EntityFrameworkCore.Modules.Runtime;
//using Elsa.Extensions;
//using Elsa.Workflows;
//using Elsa.Workflows.Management.Mappers;
//using Elsa.Workflows.Management.Models;
//using Microsoft.Extensions.Configuration;
//using Microsoft.Extensions.DependencyInjection;
//using Newtonsoft.Json;

//// 2. 实例化 ElsaEngine（单例使用）
//using var engine = await ElsaEngine.GetInstanceAsync();

//// 3. 构造输入参数
//var input = new Dictionary<string, object>
//{
//    ["amount"] = 800,
//    ["userName"] = "Geralt" 
//};

//// 4. 执行流程 
//var result = engine.ExecuteAsync("240d037bdfd04725", input).Result;

//// 5. 输出结果
//Console.WriteLine($"Status: {result.Status}");
//Console.WriteLine($"Status: {JsonConvert.SerializeObject(result.Output)}");